package com.snail.mapper;

import com.snail.model.pojo.cart.BizOrder;
import com.snail.model.pojo.cart.BizOrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BizOrderDetailMapper {

   //添加批量插入订单详情的方法
    void batchInsert(List<BizOrderDetail> details);

    //根据订单编号查询订单详情.
    @Select("select * from biz_order_detail where order_no = #{orderNo}")
    List<BizOrderDetail> selectDetailByOrderNo(String orderNo);
}
